package com.daiqee.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.daiqee.dao.mapper.MenuItemMapper;
import com.daiqee.pojo.MenuItem;

@Service
public class MenuItemService extends ServiceImpl<MenuItemMapper, MenuItem>{
	
	@Autowired
	private MenuItemMapper menuItemMapper;
	
	/**
	 * 查询功能菜单,这里需要单独开启事物
	 * 如果分类或者菜单其中一个查询失败的话将导致整个菜单页加载不出来
	 */
	public List<MenuItem> queryMenuItem() {
		return menuItemMapper.queryMenuItem();
	}

}
